package com.dalin.demo.service.imple;

import com.dalin.demo.service.TestAsync;
import com.dalin.framework.BaseServiceImple;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

@Service
public class TestAsyncImpl extends BaseServiceImple implements TestAsync {

    @Async("taskExecutor")
    public void doAsync() {
        log.info("== async start==");
        log.info("线程{}执行代码逻辑=="+Thread.currentThread().getName());
        log.info("== async end==");
    }
}
